package cn.deathgun.dcswebspringboot.service.impl

import cn.deathgun.dcswebspringboot.entity.UnittypeEntity
import cn.deathgun.dcswebspringboot.mapper.UnittypeMapper
import cn.deathgun.dcswebspringboot.service.IUnittypeService
import com.baomidou.mybatisplus.core.conditions.Wrapper
import com.baomidou.mybatisplus.core.mapper.BaseMapper
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Service
import java.util.function.Function

@Service
class UnittypeServiceImpl: IUnittypeService {

    @Autowired private lateinit var unittypeMapper: UnittypeMapper

    override fun getUnitType(typeName: String): Int? = unittypeMapper.selectTypeByTypeName(typeName)

}